<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class ImpQuest</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> ImpQuest</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class ImpQuest.php</p>
<p class="description"><p>Class that deals with the storage/management of questions inserted by groups  in the diad stage</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jose Oliveira &lt;<a href="mailto:jafo@ua.pt">jafo@ua.pt</a>&gt; 2012</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_serverResources---includes---classes---ImpQuest.php.html">/serverResources/includes/classes/ImpQuest.php</a> (line <span class="field">12</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																								<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">ImpQuest</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$question</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#addImpQuest" title="details" class="method-name">addImpQuest</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#editedQuestionsIDs" title="details" class="method-name">editedQuestionsIDs</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#edQuestIDs" title="details" class="method-name">edQuestIDs</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getAllEditedIDSFromProject" title="details" class="method-name">getAllEditedIDSFromProject</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getAllNoEditedFromProject" title="details" class="method-name">getAllNoEditedFromProject</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#getGroupID" title="details" class="method-name">getGroupID</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getNoEditedQuestInfo" title="details" class="method-name">getNoEditedQuestInfo</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getNumberOfQuestions" title="details" class="method-name">getNumberOfQuestions</a>
											(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$groupID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#getQuestByID" title="details" class="method-name">getQuestByID</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$impQuestID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#preparedArrayForAdmin" title="details" class="method-name">preparedArrayForAdmin</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#unsetImpQuest" title="details" class="method-name">unsetImpQuest</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$impQuestID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#updateToEdited" title="details" class="method-name">updateToEdited</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">27</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">ImpQuest</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$question</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$question</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$groupID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddImpQuest" id="addImpQuest"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addImpQuest</span> (line <span class="line-number">47</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that stores an question on the table ImpQuest case this is  not an edtition to a previously made question​​.</p>
<p class="description"><p>return 0: storing of the question has failed  return 1: improved question stored with success  return 2: the question has been previously entered by the group</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			addImpQuest
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodeditedQuestionsIDs" id="editedQuestionsIDs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">editedQuestionsIDs</span> (line <span class="line-number">305</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the IDs of all questions that have been edited  from a certain group.</p>
<p class="description"><p>Note: when we print the questions of the group, we should only print the  latest update of each question  Returns array with all IDs of questions that have been edited from a certain group</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			editedQuestionsIDs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$groupID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodedQuestIDs" id="edQuestIDs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">edQuestIDs</span> (line <span class="line-number">188</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the IDs of all questions that have been edited  from a certain group.</p>
<p class="description"><p>Note: when we print the questions of the group, we should only print the  latest update of each question</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns array with all IDs of questions that have been edited from a certain group</li>
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			edQuestIDs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$groupID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllEditedIDSFromProject" id="getAllEditedIDSFromProject"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getAllEditedIDSFromProject</span> (line <span class="line-number">415</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the IDs of all questions that have been edited</p>
<p class="description"><p>This is used in the stage of question discussion</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllEditedIDSFromProject
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllNoEditedFromProject" id="getAllNoEditedFromProject"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getAllNoEditedFromProject</span> (line <span class="line-number">348</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the info about all questions that haven't been edited</p>
<p class="description"><p>This is used in the stage of question discussion</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllNoEditedFromProject
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetGroupID" id="getGroupID"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getGroupID</span> (line <span class="line-number">485</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that get a question ID and returns the group ID that saved that question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getGroupID
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNoEditedQuestInfo" id="getNoEditedQuestInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNoEditedQuestInfo</span> (line <span class="line-number">233</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the info about all questions of a group that haven't been edited</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getNoEditedQuestInfo
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$groupID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNumberOfQuestions" id="getNumberOfQuestions"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNumberOfQuestions</span> (line <span class="line-number">273</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the number of questions of active (not deleted by users) inserted by a certain group,</p>
<p class="description"><p>in a certain project, in the diad stage</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getNumberOfQuestions
		</span>
					(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$groupID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$groupID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetQuestByID" id="getQuestByID"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getQuestByID</span> (line <span class="line-number">85</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that receives a improved question ID and returns the respective question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getQuestByID
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$impQuestID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$impQuestID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpreparedArrayForAdmin" id="preparedArrayForAdmin"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">preparedArrayForAdmin</span> (line <span class="line-number">450</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns an array with info properly formatted for the project administrator, with questions,</p>
<p class="description"><p>edited and unedited from each group in a certain project</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			preparedArrayForAdmin
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$groupID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$groupID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunsetImpQuest" id="unsetImpQuest"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">unsetImpQuest</span> (line <span class="line-number">388</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method used to unset a certain question. Used when a group wants to delete a question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			unsetImpQuest
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$impQuestID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$impQuestID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateToEdited" id="updateToEdited"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">updateToEdited</span> (line <span class="line-number">152</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that update de field &quot;edited&quot; of this question to &quot;1&quot;</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			updateToEdited
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionID</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 22 Feb 2013 05:33:57 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>